package com.itheima.dao;

import com.itheima.pojo.Article;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.elasticsearch.repository.ElasticsearchCrudRepository;

import java.util.List;

/**
 * @author zhengjd
 * @date 2020/5/1 10:52
 */
public interface ArticleDao extends ElasticsearchCrudRepository<Article,Long> {

    List<Article> findByTitle(String title, Sort sort);
}
